<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;

class BasePagesController extends Controller
{
  public function home(){
      $feed_items = [];
      if (Auth::check()) {
          $feed_items = Auth::user()->feed()->paginate(10);
      }
      return view('base_pages.home',compact('feed_items'));
  }
    public function help(){
        return view('base_pages.help');
    }
    public function about(){
        return view('base_pages.about');
    }
}
